<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%!
private static final String TITLE="用户注册页面";
%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  
    <base href="<%=basePath%>">
    
    <title><%=TITLE %></title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="icon" href="images/favicon.ico" type="image/x-icon" />
	<link href="css/layout.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="js/WdatePicker.js"></script>
  </head>
  
  <body>
  <center>
  <div id="container">
  <jsp:include page="header1.jsp"></jsp:include>
  <h2>用户注册</h2><%--
  错误信息显示
  --%>
  <font color=red><h3><s:fielderror/></h3></font>
<s:form action="user_reg" enctype="multipart/form-data" method="post">
<table border="1" width="450" cellpadding="4" cellspacing="2" bordercolor="#9BD7FF">
<tr>
<td align="right">用户名:</td>
<td align="left"><s:textfield name="userno" style="height:24px;line-height:24px;padding:1px;width:195px;border:1px solid #ccc;"/></td>
</tr>
<tr>
<td align="right">姓名:</td>
<td align="left"><s:textfield name="name"  style="height:24px;line-height:24px;padding:1px;width:195px;border:1px solid #ccc;"/></td>
</tr>
<tr>
<td align="right">密码:</td>
<td align="left"><s:password name="passwd"  style="height:24px;line-height:24px;padding:1px;width:195px;border:1px solid #ccc;"/>
</td>
</tr>
<tr>
<td align="right">再次输入密码:</td>
<td align="left"><s:password name="passwd2"  style="height:24px;line-height:24px;padding:1px;width:195px;border:1px solid #ccc;"/></td>
</tr>

<tr>
<td align="right">性别:</td>
<td align="left"><s:textfield name="sex"  style="height:24px;line-height:24px;padding:1px;width:195px;border:1px solid #ccc;"/></td>
</tr>

<tr>
<td align="right">生日:</td>
<td align="left"><s:textfield name="birthday" onClick="WdatePicker()"  style="height:24px;line-height:24px;padding:1px;width:195px;border:1px solid #ccc;"/></td>
</tr>

<tr>
<td align="right">email:</td>
<td align="left"><s:textfield name="email"  style="height:24px;line-height:24px;padding:1px;width:195px;border:1px solid #ccc;"/></td>
</tr>

<tr>
<td align="right">上传个性头像:</td>
<td align="left"><s:file name="file"/></td>
</tr>

<tr>
<td align="right">验证码:</td>
<td align="left"><s:textfield name="code" style="height:24px;line-height:24px;padding:1px;width:195px;border:1px solid #ccc;"/>
<span style="height:16px;line-height:16px;padding:0px;border:0px solid #ccc;"><img alt="aa" src="images/image.jsp"></span></td>
</tr>
</table>
<br>
 <s:submit name="submit" value="注册"/> &nbsp;&nbsp;<s:reset name="reset" value="重置"/>
</s:form>
<jsp:include page="footer.jsp"></jsp:include>
</div>
  </center>
  </body>
</html>
